home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Topik / Topik - Disk 16 - KnowAboutIt (19xx)(Topik Public Domain)(PD)[WB].zip / Topik - Disk 16 - KnowAboutIt (19xx)(Topik Public Domain)(PD)[WB].adf / MicroRayDbw / uray.dat < prev    next >
Text File  |  1988-12-11  |  5KB  |  112 lines

  1. /************************************************************************
  2.  *                                    *
  3.  *            Copyright (c) 1988, David B. Wecker            *
  4.  *                All Rights Reserved                *
  5.  *                                    *
  6.  * This file is part of DBW_uRAY                    *
  7.  *                                    *
  8.  * DBW_uRAY is distributed in the hope that it will be useful, but    *
  9.  * WITHOUT ANY WARRANTY. No author or distributor accepts        *
  10.  * responsibility to anyone for the consequences of using it or for    *
  11.  * whether it serves any particular purpose or works at all, unless    *
  12.  * he says so in writing. Refer to the DBW_uRAY General Public        *
  13.  * License for full details.                        *
  14.  *                                    *
  15.  * Everyone is granted permission to copy, modify and redistribute    *
  16.  * DBW_uRAY, but only under the conditions described in the        *
  17.  * DBW_uRAY General Public License. A copy of this license is        *
  18.  * supposed to have been given to you along with DBW_uRAY so you    *
  19.  * can know your rights and responsibilities. It should be in a file    *
  20.  * named COPYING. Among other things, the copyright notice and this    *
  21.  * notice must be preserved on all copies.                *
  22.  ************************************************************************
  23.  *                                    *
  24.  * Authors:                                *
  25.  *    DBW - David B. Wecker                        *
  26.  *                                    *
  27.  * Versions:                                *
  28.  *    V1.0 881023 DBW    - First released version            *
  29.  *    V1.1 881110 DBW - Fixed scan coherence code            *
  30.  *    V1.2 881125 DBW - Removed ALL scan coherence code (useless)    *
  31.  *              added "fat" extent boxes            *
  32.  *                                    *
  33.  ************************************************************************/
  34.  
  35. /**** Input for micro ray tracer ****/
  36.  
  37. DEPTH    20        /* maximum recursion depth */
  38.  
  39. #COLS    512        /* width */
  40. #ROWS    512        /* height */
  41. #START    0        /* row to start at */
  42. #END    512        /* row to end with */
  43. #BPP    24        /* bits per pixel (12 or 24 or 0 (== no .tmp file)) */
  44. #AOV    45        /* angle of view in degrees */
  45. #ASPECT    1        /* aspect ratio (cols/rows ((512/512) * (30cm/30cm))) */
  46.  
  47. COLS    352        /* width  (overscanned) */
  48. ROWS    464        /* height (overscanned) */
  49. START    0        /* row to start at */
  50. END    464        /* row to end with */
  51. BPP    0        /* bits per pixel (12 or 24 or 0 (== no .tmp file)) */
  52. AOV    60        /* angle of view in degrees */
  53. ASPECT    .544        /* aspect ratio (cols/rows ((320/400) * (17cm/25cm))) */
  54.  
  55. NEAR    0 0 1        /* ambient (background) lighting (near 0,0,0) */
  56. FAR    1 0 .5        /* ambient (background) lighting (far from 0,0,0) */
  57. GROUND    .6 .3 .3    /* ambient (background) lighting (below 0,0,0) */
  58. BASE    .05        /* minimum diffuse percentage (ambient lighting) */
  59.  
  60. /*******************************************************************
  61.  center    = origin of the wave
  62.  amp    = starting amplitude (.1 = small, 1 = large)
  63.  phase    = starting phase (0 = 0, .5 = 180, 1 = 360 degrees)
  64.  length    = wavelength
  65.  damp    = damping factor (1 = no damp, .7 = 70%)
  66.  *******************************************************************/
  67.  
  68. /****    center       amp  phase  length  damp
  69. WAVES 1
  70.     0 -8 50    5     0      10    .7
  71.  
  72. /*******************************************************************
  73.  Kd    = diffuse factor
  74.  Ks    = specular factor
  75.  Kt    = transmission factor
  76.  Ir    = index of refraction (for transmission). 1.0 = none
  77.  Kl    = self lighting factor
  78.  Kf    = fuzz factor (0 = none, 1 = max)
  79.  Wave    = wave # or -1 = no waves or -2 = all waves
  80.  
  81.  For a light source, dist == 0.0 means that there is no inverse square law
  82.  
  83.  Textures:
  84.     0        none
  85.     1 r g b x y z    checkerboard    (alt color = r g b, scale = x y z)
  86.     2 r g b        random mottled    (alt color = r g b)
  87.     3 r g b a b c    X axis blend    (alt color = r g b, X range= a - b - c)
  88.     4 r g b a b c    Y axis blend    (alt color = r g b, Y range= a - b - c)
  89.     5 r g b a b c    Z axis blend    (alt color = r g b, Z range= a - b - c)
  90.  
  91.  *******************************************************************/
  92.  
  93. /****    color    Kd  Ks   Kt  Ir  Kl  dist  Kf  Wave tex  (rgb)     (coord) ****/
  94. ATTRIBUTES 7
  95.     1 .5 0     1  0    0    1   0   0    .1  -1    0
  96.     1 0 0    .2 .8     0    1      0   0        0  -1    0
  97.     1 1 1     0 .1   .9    1.8 0   0     0  -1    0
  98.     1 1 1     0  0    0    1   1   0     0  -1    0
  99.      .07 .07 .3 .8 .2    0    1   0   0     0   0    0
  100.     1 .5 0    .9 .1    0    1   0   0     0  -1    1    1 .7 .5  .3 .3 .3
  101.     1 1 1    0  0    0    1   1   0     0  -1    4  0 0 0     0  2  4
  102.  
  103. SPHERE 6    -7 2  32  2            /* left back y axis blend */
  104. SPHERE 0     9 4  32  2            /* right back diffuse/fuzzy */
  105. SPHERE 1     1 3  26  4            /* center mirror */
  106. SPHERE 2    -2 -1 16  2            /* left front transparent */
  107. SPHERE 5     3 -1 16  2            /* right front checked */
  108.  
  109. SPHERE 3    -15 15 10   6            /* light source */
  110.  
  111. QUAD 4    -100  -8  -100   0 0  1100  200 0 0    /* ground (wavy) */
  112.